<div style="height:auto;width:100%">
<table class="tblInfo" id="cusfrmreportpay_tblinfo" width="100%">
<tr>
<td class="width25" height="400" valign="top"> 
<table class="info" id="cusfrmreportpay_info">
<tr>
<td>
<div  class="divleft">
<table class="width100">
<tr >
<td  class="lblRequired width30">Thời gian</td>
<td ><input id="cusfrmreportpay_date1"   class="datereport txtRequired" onblur="formatddmmyyyy(this)" maxlength="10" /><a href="javascript:cusfrmreportpay_cal1.popup();"> <img src="adagps.com/images/cal/cal2.png" id="cusfrmreportpay_imgcal1"   class="datepicker dpkstart" ></a>
-<input id="cusfrmreportpay_date2"  class="datereport txtRequired" onblur="formatddmmyyyy(this)" maxlength="10" /><a href="javascript:cusfrmreportpay_cal2.popup();"> <img src="adagps.com/images/cal/cal2.png" id="cusfrmreportpay_imgcal2"   class="datepicker dpkend" ></a>
</td>
</tr>       
</table>
        <div class="divactionbuton">

        <button id="cusfrmreportpay_create" class="bntreport" onclick="cusfrmreportpay_createReport();" type="button"> Xem </button>
        </div>
</div>
</td>
</tr>
<tr >
<td >
<!--<button id="cusfrmreportpay_create" class="btnreport" onclick="cusfrmreportpay_createReport();" type="button"> Xem </button> -->
</td>
</tr>
</table>
</td>
<td class="clsmiddle"></td>
<td height="400" valign="top" align="center">
<div id="cusfrmreportpay_divGrid" class="divGrid"></div></td>
<td class="clsend"></td>
</tr>
</table>
</div>
<script language="javascript">
changeWaiting(0); 
var cusfrmreportpay_cal1 = CreateCalObject('cusfrmreportpay_date1', 'cusfrmreportpay_imgcal1'); 
var cusfrmreportpay_cal2 = CreateCalObject('cusfrmreportpay_date2', 'cusfrmreportpay_imgcal2'); 
$(document).ready(function () {
    initForm('cusfrmreportpay_tblinfo');
    initDivleft();
});
//xajax_cusfrmreportpay_init();
function cusfrmreportpay_createReport(){
    if(!checkDate('cusfrmreportpay_date1','cusfrmreportpay_date2',30)){
        return false;
    }
     fromdate = ConvertoDateEN($('#cusfrmreportpay_date1').val());
     todate = ConvertoDateEN($('#cusfrmreportpay_date2').val());
     changeWaiting(0);
     xajax_cusfrmreportpay_loadGrid(fromdate,todate);  
}
$('#cusfrmreportpay_date1').val(GetCurrentDateTime(0,1,false,0)) ;
$('#cusfrmreportpay_date2').val(GetCurrentDateTime(0,0,false,0)) ;
cusfrmreportpay_createReport();
 </script>